home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 July
/
07_02.iso
/
software
/
xq-xsetup
/
files
/
setup.exe
/
{app}
/
plugins
/
XQ Control Panel Hide 10.xpl
< prev
next >
Wrap
Text File
|
2001-12-25
|
4KB
|
115 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0"
"TYPE"="6"
"COUNT"="5"
"UIPATH"="Appearance\Control Panel\OEM Icons"
"NAME"="Visible OEM Items #4"
"VERSION"="1.15"
"LANGUAGE"="VBScript"
"TEXT 1"="Display "BDE Administrator" applet"
"TEXT 2"="Display "Matrox Display Properties" applet"
"TEXT 3"="Display "Corel Versions Manager" applet"
"TEXT 4"="Display "Symantec Live Update" applet"
"TEXT 5"="Display "TweakUI" applet"
"DESCRIPTION 1"="This plug-in can be used to hide or show the different applets inside Start -> Settings -> Control Panel."
"DESCRIPTION 2"="BDE Administrator is used to adjust Corel WordPerfect Office Suite 2000 database settings."
"DESCRIPTION 3"="Matrox Display properties is for Matrox video card users."
"DESCRIPTION 4"="Corel Versions Manager is part of Corel WordPerfect Office Suite 2000."
"DESCRIPTION 5"="Symantec Live Update is used for updating Symantec products such as Norton Antivirus."
"DESCRIPTION 6"="TweakUI is a program made by Microsoft. See: http://members.aol.com/axcel216/98-3.htm#TWK98"
"AUTHOR"="CptSiskoX"
"CONTACTURL"="http://members.fortunecity.com/computingx/"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"=" "
"COMMENT 2"="Thanks to Pierre Szwarc for the info about these Control Panel applets."
"COMMENT 3"="Thanks to TeX HeX for his creativity."
"COMMENT 4"="Thanks to AXCEL216 for his info about TweakUI. See: http://members.aol.com/axcel216/98-3.htm#TWK98"
'******************************************************************
'*** COPY !!!! ONLY EDIT LINES BELOW!!!! ****
'******************************************************************
sVals=Array("bdeadmin.cpl","mgapanel.cpl","vesrcpl.cpl","s32lucp1.cpl","tweakui.cpl")
'******************************************************************
'*** Keep an eye on the order (must be the same as "TEXT x") ! ****
'******************************************************************
sPath="HKCU\Control Panel\Don't Load\"
sFile="CONTROL.INI"
sFileSec="Don't Load"
SUB Plugin_Initialize
for i=0 to UBound(sVals)
Call ReadIt(i+1,sVals(i))
next
END SUB
Sub ReadIt(ITM,VAL)
If GetWinVer=1 or GetWinVer=3 or GetWinVer=5 then
'old (win32 1/2) INI style...
s=IniReadValue(sFile,sFileSec,VAL)
if len(s)>0 then
Call SetUIElement(ITM,false)
else
Call SetUIElement(ITM,true)
end if
else
s=RegReadValue(sPath & VAL)
if IsEmpty(s)=true then
Call SetUIElement(ITM,true)
else
Call SetUIElement(ITM,false)
end if
end if
End Sub
'Called when the Plugin should validate the Data the user has entered
SUB Plugin_CheckData(ElementIndex)
END SUB
'Called when the Plugin should apply the changes
SUB Plugin_Apply(ElementIndex,ElementSubIndex)
for i=0 to UBound(sVals)
Call WriteIt(i+1,sVals(i))
next
Call IndicateSettingChange()
END SUB
Sub WriteIt(ITM,VAL)
b=GetUIElement(ITM)
if b=true then
'Display it
If GetWinVer=1 or GetWinVer=3 or GetWinVer=5 then
'win32 1/2
Call IniWriteValue(sFile,sFileSec,VAL,"")
else
s=RegReadValue(sPath & VAL)
if IsEmpty(s)=false then
Call RegDeleteValue(sPath & VAL)
end if
end if
else
'Hide it
If GetWinVer=1 or GetWinVer=3 or GetWinVer=5 then
'win32 1/2
Call IniWriteValue(sFile,sFileSec,VAL,"no")
else
Call RegWriteValue(sPath & VAL,"1",1)
end if
end if
End Sub
'Called when the Plugin is about to be removed from memory
SUB Plugin_Terminate
END SUB